home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
pc
/
files
/
watt.dir
/
00207_Script_Watt Sculpture Obj
< prev
next >
Wrap
Text File
|
1997-07-24
|
8KB
|
264 lines
--o Watt Sculpture Obj
--Instantiated as gWattSculptureObj
property pIntroSoundFileName
property pQTsprite, pPICTsprite, pQTframeSprite
property pPedalHSsprite, pBlockHSsprite, pMachineRunningHSsprite
property pMachineRunningHSlocH, pMachineRunningHSlocV
property pWhichQTplaying, pDisplayingQT
property pPlaceHolderCastNum, pPICTstage2castNum, pSecondaryTxtBaseCast
property pIntroQTcastNum, pIntroQTlocH, pIntroQTlocV
property pMachineQTcastNum, pMachineQTlocH, pMachineQTlocV
property pMachineCU1castNum, pQTCUlocH, pQTCUlocV
property pQTframeCastNum, pQTframeRect
property pCUQTstage, pOperateText, pActive, pInstructText
property pRolloverActive, pRolloverStartsprite, pRolloverEndSprite, plabels
property pBustCast, pPictActive
global gSndPath, gScoreEventObj, gUtilityObj, gActiveAmbSnd
-----------------------------------------------------------------<<ò>>
on mInit me
sound stop 1
set gActiveAmbSnd = "WSCAMB.AIF"
set pIntroSoundFileName = "WSCINTR.AIF"
set pSecondaryTxtBaseCast = the number of cast "Zoom 1 Text"
set pOperateText = the text of cast "Sculpture Operate"
set pInstructText = the text of cast "Sculpture Instruct Text"
set pQTsprite = 23
set pRolloverStartsprite = 7
set pRolloverEndSprite = 9
set plabels = the text of cast "Sculpt Labels"
set pPictsprite = 18
set pBustCast = the number of cast "WSCHDZM1.PIC"
set pPictActive = false
sound playfile 2, gSndPath & pIntroSoundFileName
return( me )
end mInit
-----------------------------------------------------------------<<ò>>
on mDisplayPict me
if (pCUQTstage > 1) then go "SculptureBase"
if pActive then mStopMachine me
cursor 4
mUnSetAllCursors(gUtilityObj)
set pRolloverActive = FALSE
puppetsprite pPictsprite, true
set the castnum of sprite pPictsprite = pBustCast
updatestage
mSetCursors( gUtilityObj, [21:#Return, 22:#Return])
cursor -1
set pPictActive = TRUE
end mDisplayPict
-----------------------------------------------------------------<<ò>>
on mClearPict me
puppetsprite pPictsprite, false
set the castnum of sprite pPictsprite = 0
updatestage
set pPictActive = FALSE
mUnSetAllCursors(gUtilityObj)
end mClearPict
-----------------------------------------------------------------<<ò>>
on mActivate me
puppetSprite pMachineRunningHSsprite, true
set pCUQTstage = 0
mSetCursors( gUtilityObj, [9:#Operate, 4:#Operate, 21:#Return, 22:#Return])
mSetToolBtns (gInterfaceMgrObj, #SCULPTURE, me)
set pActive = FALSE
end mActivate
-----------------------------------------------------------------<<ò>>
on mClose me
mUnSetAllCursors(gUtilityObj)
mSetCursors( gUtilityObj, [21:#Return, 22:#Return])
end mClose
-----------------------------------------------------------------<<ò>>
on mStartMachine me
set gActiveAmbSnd = 0
set pRolloverActive = TRUE
cursor 4
sound stop 1
set pCUQTstage = 4
mUnSetAllCursors(gUtilityObj)
go "OpSculpture"
mDisplayInstructText( gUtilityObj, pOperateText )
mSetCursors( gUtilityObj, [9:#operate,7:#Foot,8:#zoomin,21:#Return, 22:#Return])
set pActive = TRUE
cursor -1
end mStartMachine
-----------------------------------------------------------------<<ò>>
on mLoad me
set pCUQTstage = 1
cursor 4
sound stop 2
mUnSetAllCursors(gUtilityObj)
go "ACTSCULPTURE"
cursor -1
mSetCursors( gUtilityObj, [21:#Return, 22:#Return])
end mLoad
-----------------------------------------------------------------<<ò>>
on mSetUp me
set pRolloverActive = TRUE
set pCUQTstage = 1
mSetCursors( gUtilityObj, [9:#operate,7:#Foot,8:#zoomin,21:#Return, 22:#Return])
mDisplayInstructText( gUtilityObj, pInstructText )
updatestage
end mSetUp
-----------------------------------------------------------------<<ò>>
on mStopMachine me
set gActiveAmbSnd = "WSCAMB.AIF"
set pRolloverActive = TRUE
set the movieRate of sprite pQTsprite = 0
set the locV of sprite pQTsprite = -500
set pActive = FALSE
sound stop 1
go "SculptureBase"
mDisplayInstructText( gUtilityObj, pInstructText )
end mStopMachine
-----------------------------------------------------------------<<ò>>
on mCloseUpStage1 me
set gActiveAmbSnd = 0
set pRolloverActive = FALSE
cursor 4
set pActive = FALSE
mUnSetAllCursors(gUtilityObj)
set pCUQTstage = 2
sound stop 1
go frame "SCzoom1"
set NewText = the text of cast pSecondaryTxtBaseCast
mDisplayInstructText (gUtilityObj, NewText)
updatestage
cursor -1
mSetCursors( gUtilityObj, [15:#ZoomIn, 21:#Return, 22:#Return])
end mCloseUpStage1
-----------------------------------------------------------------<<ò>>
on mCloseUpStage2 me
set gActiveAmbSnd = 0
set pRolloverActive = FALSE
cursor 4
set pActive = FALSE
mUnSetAllCursors(gUtilityObj)
set pCUQTstage = 3
set the movierate of sprite pQTsprite = 0
sound stop 1
go frame "SCzoom2"
set NewText = the text of cast "Zoom 2 Text"
mDisplayInstructText (gUtilityObj, NewText)
updatestage
cursor -1
mSetCursors( gUtilityObj, [15:#ZoomOut,17:#OPERATE,21:#Return, 22:#Return])
end mCloseUpStage2
-----------------------------------------------------------------<<ò>>
on mPullout me
cursor 4
sound stop 2
sound stop 1
if pPictActive then
mClearPict( me )
if (pCUQTstage = 0) then mActivate( me )
else
set pRolloverActive = TRUE
mUnSetAllCursors(gUtilityObj)
puppetsprite pPictsprite, false
if not pActive then
go "SculptureBase"
mSetUp me
else mStartMachine me
end if
else
if (pCUQTstage = 0) or (pCUQTstage = 1) then
mClose(me)
go "Sculpture PO"
mPullOut(gScoreEventObj)
else
set pRolloverActive = TRUE
mUnSetAllCursors(gUtilityObj)
puppetsprite pPictsprite, false
if not pActive then
go "SculptureBase"
mSetUp me
else mStartMachine me
end if
end if
cursor -1
set gActiveAmbSnd = "WSCAMB.AIF"
end mPullout
-----------------------------------------------------------------<<ò>>
on mOperate me, Whatselection
set gActiveAmbSnd = 0
sound stop 1
sound stop 2
if pPictActive then mClearPict me
if Whatselection = 1 then mLoad me
else mStartMachine me
mClearToolHilite ( gInterfaceMgrObj )
end mOperate
-----------------------------------------------------------------<<ò>>
on mZoom me, Whatselection
set gActiveAmbSnd = 0
sound stop 1
sound stop 2
if pPictActive then mClearPict me
if Whatselection = 1 then mDisplayPict me
else if Whatselection = 2 then mCloseUpStage1 me
else mCloseUpStage2 me
mClearToolHilite ( gInterfaceMgrObj )
end mZoom
-----------------------------------------------------------------<<ò>>
on mPerform me
if pRolloverActive then
set spritetoCheck = pRolloverStartsprite
set found = FALSE
repeat while (not found) and (spritetoCheck <= pRolloverEndSprite)
if rollover(spritetoCheck) then
set labelText = line (spritetoCheck - pRolloverStartsprite + 1) of plabels
mSetLabelText( gUtilityObj, labelText)
set found = TRUE
end if
set spritetoCheck = spritetoCheck + 1
end repeat
end if
go the frame
set gActiveAmbSnd = "WSCAMB.AIF"
end mPerform
-----------------------------------------------------------------<<ò>>